package main;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class ChatRoomMain extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {
        // 加载fxml文件
        Parent parent = FXMLLoader.load(getClass().getResource("/ChatRoom.fxml"));
        primaryStage.setTitle("聊天室");
        primaryStage.setScene(new Scene(parent));
        primaryStage.setResizable(false);
        primaryStage.show();
    }

    public static void main(String[] args) {
        // 启动程序
        launch(args);
    }
}